const nodata = require('../tw-lib-base/no-data/props')
module.exports = {
  data: {
    type: Object,
    default: function () {
      return [
        {
          name: '概览名称1概览名称1概览名称1',
          href: ''
        },
        {
          name: '概览名称2',
          href: '描述2'
        },
        {
          name: '概览名称2',
          href: '描述2'
        },
        {
          name: '概览名称2',
          href: '描述2'
        },
        {
          name: '概览名称2',
          href: '描述2'
        }
      ]
    },
    name: '数值',
    filedType: 'api'
  },
  padding: {
    type: String,
    default: '0',
    name: '内边距',
    filedType: 'string'
  },

  bgColor: {
    type: String,
    default: '#fff',
    name: '选项背景',
    filedType: 'color'
  },
  width: {
    type: String,
    default: '45%',
    name: '选项宽度',
    filedType: 'string'
  },
  itemPadding: {
    type: String,
    default: '0',
    name: '选项内边距',
    filedType: 'string'
  },
  itemBorderRadius: {
    type: String,
    default: '15px',
    name: '选项圆角',
    filedType: 'string'
  },

  marginLeft: {
    type: String,
    default: '15px',
    name: '选项左右间距',
    filedType: 'string'
  },
  marginTop: {
    type: String,
    default: '20px',
    name: '选项上下间距',
    filedType: 'string'
  },
  itemPadding: {
    type: String,
    default: '0',
    name: '选项内边距',
    filedType: 'string'
  },

  fontSize: {
    type: String,
    default: '14px',
    name: '字号',
    filedType: 'string'
  },

  color: {
    type: String,
    default: '#333',
    name: '文本颜色',
    filedType: 'color'
  },
  textPadding: {
    type: String,
    default: '2px 10px',
    name: '文本内边距',
    filedType: 'string'
  },
  lineHeight: {
    type: String,
    default: '2',
    name: '文本行高',
    filedType: 'string'
  },
  activeColor: {
    type: String,
    default: 'green',
    name: '高亮文本颜色',
    filedType: 'color'
  },

  itemBorder: {
    type: String,
    default: '',
    name: '边框',
    filedType: 'string'
  },
  boxshadow: {
    type: String,
    default: '0 0 9px 3px #999',
    name: '边框阴影',
    filedType: 'string'
  },
  activeBorder: {
    type: String,
    default: '1px solid green',
    name: '高亮边框',
    filedType: 'string'
  },
  activeBoxshadow: {
    type: String,
    default: '0 0 9px 3px #999',
    name: '高亮边框阴影',
    filedType: 'string'
  },

  icons: {
    type: Array,
    default () {
      return []
    },
    name: '图标列表',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },

  timeout: {
    type: String,
    default: '1000',
    name: '心跳间隔',
    filedType: 'string'
  },
  wsLink: {
    type: String,
    default: 'ws://211.103.220.126:18181',
    name: 'websock服务器',
    nameTip: '需填上协议ws://',
    filedType: 'string'
  },
  useClickfn: {
    type: Boolean,
    default: false,
    name: '使用自定义函数',
    filedType: 'switch'
  },
  clickFn: {
    type: Function,
    default: '',
    name: '自定义发送信息',
    nameTip: '函数的第一个参数即为消息，第二个是页面this',
    filedType: 'function'
  },

  ...nodata
}

// Helvetica Neue,,宋体,Arial,Helvetica,sans-serif
